package com.dao;

import com.entity.PartnerOrderVo;
import com.entity.system.UserInfo;


import java.util.List;
import java.util.Map;


public interface UserInfoMapper{
	
	public UserInfo selectUserInfoNotNull(Map<String, Object> map);

	public List<UserInfo> selectList(Map<String, Object> map);

	/**
	 * 根据userID查询user
	 * 
	 * @param userId
	 * @param tableNum
	 * @return
	 */
	public UserInfo findByUserId(Long userId, Integer tableNum);



	/**
	 * 查询一个用户的基本信息
	 * @param map
	 * @return 
	 */
	UserInfo selectUser(Map<String, Object> map);

	/**
	 * 查找所有用戶
	 * 
	 * @param
	 */
	List<UserInfo> findAllUser();
	/**
	 * 按照創建時間查找用戶
	 * 
	 * @param map
	 */
	public List<UserInfo> findBetweenCreateTime(Map<String, Object> map);
	/**
	 * 连接用户资产表查询
	 * @param map
	 * @return
	 */
	public UserInfo selectModel2(Map<String, Object> map);


	/**
	 * 后台统计最近12个月，每月新注册的用户数
	 * @param map
	 * @return
	 */
	public Map<String, Object> countNewRegUserMonthlyByRoleForAdmin(Map<String, Object> map);

	/**
	 * 后台统计指定一段时间注册的创客数
	 * @param map
	 * @return
	 */
	public int countNewRegUserDayByRoleForAdmin(Map<String, Object> map);

	public Map<String,Object> findUserIdByPhone(String phone);

	public UserInfo findUserByPhoneAndPwd(Map<String,String > map);

	public String findPhoneByUserId(Long userId);

	public List<UserInfo> fundUserList(Map<String,String> map);

	public UserInfo findUserByPhone(String phone);

	public UserInfo findUserById(Long userId);

	public List<Long> findUserIdByMap(Map<String,Object> map);

}